import api.utils.ToolsAPI;
import bean.*;
import org.testng.Assert;
import org.testng.annotations.Test;

public class Login<T> extends ToolsAPI<T> {
    @Test(description = "登录-正常用例", enabled = true)
    public void logn() {
        //增加接口请求参数
        put("account", "admin");
        put("password", "666666");
        //获取接口返回信息
        LoginBean bean = runAPI(retrofit.login(toBody(map)));
        Assert.assertFalse(bean.getData().equals(""),"token返回空字符");
    }
}


